package lab_01;
import java.util.Scanner;
public class Test_05_2 {public static void main(String[] a)
    {   Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的成绩（1~5）：");
        int age = sc.nextInt();
        switch (age){
            case 1 :
                System.out.println("不及格");
                break;
            case 2 :
                System.out.println("及格");
                break;
            case 3 :
                System.out.println("中等");
                break;
            case 4 :
                System.out.println("良好");
                break;
            case 5 :
                System.out.println("优秀");
                break;
            default:
                System.out.println("输入错误");

        }
    }
}
